from django.urls import path
from . import views
from rest_framework.routers import DefaultRouter

app_name = "home"

router = DefaultRouter(trailing_slash=False)
router.register('latestinform', views.LatestInformView, basename='staff')
router.register('latestabsent', views.LatestAbsentView, basename='download')
router.register('deptStaffCnt', views.DepartmentStaffView, basename='upload')

urlpatterns = [
                  path('health', views.HealthCheckView.as_view(), name='health_check')
              ] + router.urls
